package com.feifan.monthhelper.db.dao;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;
import android.arch.persistence.room.Update;

import com.feifan.monthhelper.bean.db.LoveProtectBean;

import java.util.List;

@Dao
public interface LoveProtectDao {

    @Query("Select * from love_protect")
    List<LoveProtectBean> getAll();

    @Query("Select * from love_protect Where date = (:date)")
    LoveProtectBean loadByDate(long date);

    @Insert
    void insertAll(LoveProtectBean... users);

    @Delete
    void delete(LoveProtectBean... users);

    @Update
    void update(LoveProtectBean... users);

//    @Query("update videobean set id =:videoId where date=:uid")
//    void updateCustom(String videoId, int uid);
}
